import './assets/main.css'
import axios from 'axios'

import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import mypinia from 'pinia-plugin-persistedstate'
import SlideVerify from 'vue-monoplasty-slide-verify';
import { pcaTextArr } from 'element-china-area-data'
export default {
  data () {
    return {
      pcaTextArr,
      selectedOptions: []
    }
  },
}

import zhCn from 'element-plus/es/locale/lang/zh-cn'


axios.defaults.headers.common["Authorization"] = "Bearer " + window.sessionStorage.getItem("token");

const app = createApp(App)

app.use(ElementPlus, {
  locale: zhCn,
})

app.use(SlideVerify);
app.use(ElementPlus)
app.use(createPinia().use(mypinia))
app.use(router)

app.mount('#app')
